package Decorator;

import Decorator.base.Shape;
//真实引用继承抽象对象 被增加的扩展类
public class RedShapeDecorator extends ShapeDecorator{
    public RedShapeDecorator(Shape decotatedShape) {
        super(decotatedShape);
    }

    @Override
    public void draw() {
        decotatedShape.draw();
        setRedBorder(decotatedShape);
    }

    private void setRedBorder(Shape decotatedShape) {
        System.out.println("Border Color: Red");
    }
}
